
<?php include_once './application/views/sys_admin/common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once './application/views/sys_admin/common/user_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
			<strong>客户管理</strong> &gt;&gt;  证明资料
		</div>
		
		<div class="admin_right_con" >
			<table border="0" cellspacing="1" cellpadding="0">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>ID</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>用户名</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>真实姓名</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>资料类型</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>图片</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>状态</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>获得积分</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>简介</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>操作</strong></td>
			  </tr>
			  <?php foreach($list as $val){?>
			  <tr>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $val['id'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $userinfo['username'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $userinfo['realname'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $type_list[$val['type_id']];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><a href="/<?php echo $val['litpic']?>" target="_blank"><img style="width: 60px;height: 30px;" src="/<?php echo $val['litpic']?>" alt="<?php echo $val['name']?>" /></a> </td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $status_list[$val['fstatus']];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $val['jifen'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $val['content'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><a href="javascript:void(0);" onclick="javascript:del('<?php echo $val['id'];?>');">删除</a> </td>
			  </tr>
			  <?php }?>
			  
			</table>
			<form id="tmpform"></form>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
<div id="dialog" style="display:none">
<p id="msg" style="text-align:center"></p>
</div>
<script>
function del(id){
	var options = {
		url : '/sys_admin/user/del_att/'+id,
		dataType: "json",
		type:"get",
		success : function(ret) {
			$('#dialog').dialog({
				modal:true,
				title:'系统提示',
				buttons:{"确定":function(){$(this).dialog("close");}},
				close: function() {
					location=ret.url;
				}
			}); 
			$("#msg").html(ret.msg);
		}
	};
	$('#tmpform').ajaxSubmit(options);
	return false;
}
</script>
</body>
</html>
